﻿
@{
    Layout = null;
    var imageServer = new Ec_System.Facade.Web.SiteConfigFacade().AdCommendPicURL;
    var adInfo = new Ec_System.Facade.Web.AdRecommendFacade().GetUserLoginPageAdInfo;

}

<script type="text/javascript">
    $(document).ready(function () {
        $("#loginForm").validate({
            rules: {
                txt_uname: { required: true },
                txt_pass: { required: true }
            },

            messages: {
                txt_uname: { required: "请输入用户名" },
                txt_pass: { required: "请输入密码" }
            }
        });
    });
</script>

<div class="usBox clearfix">
    <div class="usBox_top">
        <a class="active" href="/Customer/UserLogin">登陆</a>
        <a href="/Customer/UserReg">注册</a>
        <a href="/Customer/UserFindPwd">找回密码</a>
        <a href="/Customer/ReSendMail">重发验证邮件</a>
    </div>
    <div class="longTop">Hi，<span style="color:#666">未登录堂友</span>，登录果蔬汇与 <b style="color:#f90">10000</b> 位网友，一起交流经验分享快乐吧！</div>
    
    <form action="/Customer/UserLogin" method="post" id="loginForm">
        <table width="100%" cellspacing="0" cellpadding="0" class="norTable">
            <tbody>
                <tr>
                    <th width="100">用户名/邮箱</th>
                    <td>
                        <input name="txt_uname" type="text" size="25" class="inputBg required" />
                        @if (@ViewBag.Info != null)
                        {
                            <label class="error"> @ViewBag.Info</label>
                        }
                    </td>
                    <!--广告信息-->
                    <td width="435" class="vlm leftBorder center" rowspan="5" style="border-bottom:none">
                        
                            @if (adInfo != null)
                            {
                                foreach (var item in adInfo)
                                {
                                    <a href="@item.Url" target="_blank"><img src="@imageServer/@item.AdPicName" style="padding-left:5px;" width="425" height="320" /></a>
                                }
                            }
                    </td>
                </tr>
                <tr>
                    <th>密码</th>
                    <td>  <input name="txt_pass" type="password" size="15" class="inputBg required" /></td>
                </tr>
                <tr>
                    <th>验证码</th>
                    <td>
                        <input type="text" name="ValidatorCode" size="30" class="inputBg" />
                        <img id="valiCode" style="vertical-align:bottom;" src="/Customer/GetValidateCode" />
                        @if (ViewBag.CodeErr != null)
                        {
                            <label class="error">@ViewBag.CodeErr</label>
                        }
                    </td>
                </tr>
                <tr>
                    <th></th>
                    <td>
                        <input type="checkbox" value="1" name="remember" id="remember" /><label for="remember"> 下次自动登录</label>
                        <span style="color:#999; font-size:12px;">使用公用电脑勿勾选</span>
                    </td>
                </tr>
                <tr class="last">
                    <th></th>
                    <td class="vm" style=" padding-bottom:65px;">
                        <input type="submit" name="submit" value="登 录" class="user_bnt" />
                        <a style="margin-left:10px;" class="c4095ce" href="/Customer/UserFindPwd">忘记密码</a> <span style="color:#999">|</span> <a class="c4095ce" href="/Customer/UserReg">注册</a>|</span> <a class="c4095ce" href="/Customer/UserReg">重发验证邮件</a>
                    </td>
                </tr>
                <tr>
                    <th></th>
                    <td>
                        <div class="hezuo">
                            <p class="t">@*使用合作账号登录*@</p>
                            <p class="b">
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>


</div>